package com.zide.member.vo.result.community;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author 石添添
 * @date 2024-09-13 15:52
 */
@Data
@Schema(description = "社区文章结果")
public class CommEssayResultVO {

    @Schema(description = "id")
    private Long id;
    @Schema(description = "会员Id")
    private Long memberId;
    @Schema(description = "昵称")
    private String nickname;
    @Schema(description = "头像")
    private String avatar;
    @Schema(description = "分类id")
    private Long categoryId;
    @Schema(description = "分类名称")
    private String categoryName;
    @Schema(description = "标题")
    private String title;
    @Schema(description = "封面")
    private String mainImg;
    @Schema(description = "内容")
    private String content;
    @Schema(description = "阅读数量")
    private Integer readQuantity;
    @Schema(description = "点赞数量")
    private Integer giveupQuantity;
    @Schema(description = "踩数量")
    private Integer ungiveupQuantity;
    @Schema(description = "收藏数量")
    private Integer collectQuantity;

    @Schema(description = "相隔时间")
    private String intervalTime;

    @Schema(description = "发布时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime pushTime;

    @Schema(description = "最后修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
}
